import request from '@/utils/request'

export function getPureOrganization(parentOrgId) {
  var isdept = 0
  return request({
    url: `/organizations?parentOrgId=${parentOrgId}&isdept=${isdept}`,
    method: 'get',
    params: [parentOrgId, isdept]
  })
}

// 查询部门
export function getPureDepartments(parentOrgId) {
  var isdept = 1
  return request({
    url: `/organizations?parentOrgId=${parentOrgId}&isdept=${isdept}`,
    method: 'get',
    params: [parentOrgId, isdept]
  })
}
